package com.service.imp;

import com.mapper.CourseMapper;
import com.pojo.Course;
import com.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    public CourseMapper courseMapper;

    @Override
    public List<Course> getCourses(Course course) {
        return courseMapper.selectAll(course);
    }
}
